package com.hhss.eurekafeignclient.controller;

import com.hhss.eurekafeignclient.service.EurekaFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zcc
 * @Date: 19-9-30 11:36
 * @Description:
 */
@RestController
public class HelloController {

    @Autowired
    EurekaFeignClient eurekaFeignClient;

    @RequestMapping("feignHello")
    public String feignHello(@RequestParam String name){

        return eurekaFeignClient.sayHello(name);
    }
}
